<template>
	<!-- 既往数据 -->
	<view id="pastData">
		<view v-for="(item,index) in list" :key='index' @click="C_listItem(item,index+1)">
			<image v-if="vuex_httpImageUrl" :src="vuex_httpImageUrl+'static/index/db/'+(index+1)+'.png'"></image>
			<view>
				<view class="name">{{item}}</view>
				<view class="msg">
					<text>记录您的{{item}}既往数据</text>
					<text>去查看</text>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default{
		data(){
			return{
				list:[
					'呼吸系统','循环系统','消化系统','泌尿生殖系统',
					'血液系统','神经系统','内分泌系统','运动系统',
					'过敏史','疫苗接种史','其他'
				]
			}
		},
		methods:{
			C_listItem(name,index){
				uni.navigateTo({
					url:'./detaial/detaial?params='+JSON.stringify({name,index})
				})
			}
		}
	}
</script>
<style lang="scss">
	#pastData{
		padding-bottom: 20rpx;
		>view{
			background-color: #FFFFFF;
			width: 95%;
			margin: 20rpx auto;
			border-radius: 20rpx;
			display: flex;
			padding: 30rpx;
			image{
				width: 100rpx;
				height: 100rpx;
				margin-right: 20rpx;
			}
			>view{
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.name{
					font-weight: bold;
					font-size: 35rpx;
				}
				.msg{
					color: #898989;
					display: flex;
					justify-content: space-between;
				}
			}
		}
	}
</style>